Skip to content

[#757] Emphasize USD values in Writer Stats + Activity Stats#761

Merged
realproject7 merged 2 commits intomainfrom
task/757-usd-emphasis
Apr 2, 2026
Merged

[#757] Emphasize USD values in Writer Stats + Activity Stats#761
realproject7 merged 2 commits intomainfrom
task/757-usd-emphasis

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Writer Stats: Donations Received and Royalties Claimed now show USD first (bold) with PLOT in muted parentheses, swapping the previous order
  • Activity Stats: Trade Vol and Donated boxes now display USD values via plotUsd price; labels simplified to "Trade Vol" and "Donated" (removed "(PLOT)")
  • Falls back to PLOT display when USD price is unavailable

Fixes #757

Test plan

  • Writer Stats: USD first, PLOT in parentheses for Donations Received
  • Writer Stats: USD first, PLOT in parentheses for Royalties Claimed
  • Activity Stats: Trade Vol box shows USD value
  • Activity Stats: Donated box shows USD value
  • Activity Stats: labels say "Trade Vol" and "Donated" (no PLOT)
  • Graceful fallback when plotUsd is unavailable
  • npm run build passes

🤖 Generated with Claude Code

Writer Stats: Donations Received and Royalties Claimed now show USD
first (bold) with PLOT amount in muted parentheses.

Activity Stats: Trade Vol and Donated boxes now show USD values using
plotUsd price, labels simplified to "Trade Vol" and "Donated" (no PLOT).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 2, 2026 2:10pm

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b APPROVE

Clean swap of USD/PLOT emphasis. Writer Stats correctly show USD bold first with PLOT muted in parentheses. Activity Stats boxes use plotUsd for USD conversion with proper fallback chain (USD > PLOT > dash). Labels simplified as required. No concerns.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: REQUEST CHANGES

Summary

The Writer Stats swap looks fine, but the new Activity Stats fallback path can still show PLOT-denominated numbers under USD-only labels.

Findings

  • [medium] When plotUsd is unavailable, the Trade Vol and Donated boxes fall back to raw PLOT amounts even though the labels no longer indicate PLOT units. That creates misleading output during initial load or price-fetch failure, because the UI now presents unlabeled token amounts where the ticket explicitly asked for USD values.
    • File: src/app/profile/[address]/page.tsx:1887
    • File: src/app/profile/[address]/page.tsx:1895
    • Suggestion: Render until plotUsd is available, or keep an explicit PLOT unit in both the value and label when falling back.

Decision

Requesting changes because the current fallback breaks the intended USD emphasis in Activity Stats and can display the wrong unit semantics to users.

Trade Vol and Donated boxes now show "—" when plotUsd is unavailable,
avoiding unlabeled PLOT values since labels no longer include "(PLOT)".

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The follow-up commit resolves the remaining Activity Stats issue: Trade Vol and Donated now render USD values when plotUsd is available and show otherwise, so the simplified labels no longer hide raw PLOT units.

Findings

  • None.

Decision

Approving because the Writer Stats and Activity Stats changes now match the requested behavior for issue #757 and the previously reported unit-mismatch is resolved.

@realproject7 realproject7 merged commit 95981f1 into main Apr 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Emphasize USD values — Writer Stats + Activity Stats

2 participants